package com.woniu.atms.entity;

import com.woniu.atms.vo.aft.site.group.AddGroup;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * (G5Site)实体类
 *
 * @author makejava
 * @since 2022-01-17 14:25:28
 */
public class G5Site implements Serializable {
    private static final long serialVersionUID = 364987324621801609L;

    @NotNull(message = "站点id不能为null")
    @Min(value = 1,message = "id需为正整数")
    private Integer id;

    @Size(min = 1  ,max = 15,message = "站点名不符合规范" ,groups = {AddGroup.class})
    private String name;

    private String status;

    @Size(min = 1,max = 15,message = "站点所属地区不符合规范",groups = {AddGroup.class})
    private String address;
    
    private String isExit;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getIsExit() {
        return isExit;
    }

    public void setIsExit(String isExit) {
        this.isExit = isExit;
    }

    @Override
    public String toString() {
        return "G5Site{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", status='" + status + '\'' +
                ", address='" + address + '\'' +
                ", isExit='" + isExit + '\'' +
                '}';
    }
}

